package tech.heptagram.staff.mapper;


import tech.heptagram.staff.domain.Sequence;

/**
 * 流水号生成规则修改
 *
 * @author wangkun23
 * @Note 不要使用更改方法生产流水号，请使用SequenceService
 * @Seelink com.zhongfl.polaris.alkaid.service.sequence.SequenceService
 */
public interface SequenceMapper {

    /**
     * 新增一条
     *
     * @param sequence
     */
    void insert(Sequence sequence);

    /**
     * 获取自增序列
     *
     * @param sequence
     * @return
     */
    Sequence getSequence(Sequence sequence);

    /**
     * 修改自增
     *
     * @param sequence
     */
    void updateSequence(Sequence sequence);
}
